package hu.codelab.lg.servicecenter.entities;

import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;

@Root(name = "Address", strict = false)
public final class Address {

    @Element(name = "Latitude", required = false)
    private int latitude;

    @Element(name = "Longitude", required = false)
    private int longitude;

    @Element(name = "Zip", required = false)
    private int zip;

    @Element(name = "City", required = false)
    private String city;

    @Element(name = "District", required = false)
    private String district;

    @Element(name = "Street", required = false)
    private String street;

    @Element(name = "Number", required = false)
    private String number;

    public int getLatitude() {
        return latitude;
    }

    public void setLatitude(final int latitude) {
        this.latitude = latitude;
    }

    public int getLongitude() {
        return longitude;
    }

    public void setLongitude(final int longitude) {
        this.longitude = longitude;
    }

    public int getZip() {
        return zip;
    }

    public void setZip(final int zip) {
        this.zip = zip;
    }

    public String getCity() {
        return city;
    }

    public void setCity(final String city) {
        this.city = city;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(final String district) {
        this.district = district;
    }

    public String getStreet() {
        return street;
    }

    public void setStreet(final String street) {
        this.street = street;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(final String number) {
        this.number = number;
    }
    
    public String getReadableAddress(){
        return city + "\n" + street + " " + number ;
    }

}
